#pragma once
#include <StaticMesh.h>

namespace grflib
{
	namespace engine
	{
		namespace aux
		{
			class CSkyBox : public CStaticMesh
			{
			public:
				CSkyBox(float distance);
				virtual ~CSkyBox(void);
                				
				virtual grflib::engine::core::BBox<float> &GetBoundingBox(void);
                virtual HRESULT PreRender(ID3D10Device *pd3dDevice,
                    const D3DXMATRIX *pWorldMat,
                    double fTime,
                    float fElapsedTime,
                    UINT pass);

                void SetCubeTexture(char *textureName);

			protected:
				void CreateMesh(void);
                void CreateMaterial(void);
                float m_distance;
			};

		} //namespace aux
	} //namespace engine
} //namespace grflib